// Test.LibQuoteService.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "QuoteDef.h"
#include "QuoteServiceFactory.h"
#include "utimeutils.h"
USING_LIBSPACE


void recievequote(void* sender,const Quote& thequote)
{
	
	std::cout/*<<UTimeUtils::GetFormatNowTime()*/<<
		thequote<<std::endl;
}
int _tmain(int argc, _TCHAR* argv[])
{
	//UDll::OpenDll()
	IQuoteService* fc = (IQuoteService*)CreateQuoteService(NULL);
	fc->Subscribe(1,recievequote);

	fc->Start();
	getchar();
	return 0;
}

